//该文件专门用于创建整个应用的路由器
import VueRouter from "vue-router";
import Vue from "vue";
//引入组件
import About_a from '../views/About_a.vue'
import Home from '../views/Home.vue'
import Productsd from '../views/Productsd.vue'
import Solution from '../views/Solution.vue'
import Marketing from '../views/Marketing.vue'
import Qht from '../views/Qht.vue'
import Ip from '../views/Ip.vue'
import Mbmh from '../views/Mbmh.vue'
// import Hq from '../views/Hq.vue'
Vue.use(VueRouter)

//创建并暴露一个路由器
export default new VueRouter({
    routes: [{

            path: '/',
            component: Home,
            redirect: '/home'
        },
        {
            path: '/home',
            component: Home,
        },
        {
            path: '/solution',
            component: Solution,
        },
        {
            path: '/productsd',
            component: Productsd,
            // children: [{
            //     path: '',
            //     component: Qht,
            // }]
        },
        {
            path: '/productsd/qht',
            component: Qht,
        },
        {
            path: '/productsd/ip',
            component: Ip,
        },
        {
            path: '/productsd/mbmh',
            component: Mbmh,
        },
        {
            path: '/marketing',
            component: Marketing,
        },
        {
            path: '/about_a',
            component: About_a,
        },
    ],
    mode: 'history'
})